bug fix to display correct objectPage name in Error messages#425
Open
yashmeet29 wants to merge 9 commits intodevelopfrom
Open
bug fix to display correct objectPage name in Error messages#425yashmeet29 wants to merge 9 commits intodevelopfrom
yashmeet29 wants to merge 9 commits intodevelopfrom
Conversation
Contributor
There was a problem hiding this comment.
.hyperspace/pull_request_bot.jsonfile parsing failed: Configuration file contains invalid JSON syntax:Illegal trailing comma before end of object: line 15 column 39 (char 530)- ConfigurationParsingException
The pull request implements a bug fix to display correct object page names in error messages by using CDS annotations instead of hardcoded field names. I've identified several issues:
- Null handling issue: The code adds null parent titles to the map without validation, which could cause downstream issues
- Missing null check: When determining nested entity names fails, null is passed to title extraction methods
- Type conversion issues: Annotation values are converted to strings without proper type checking, which could produce incorrect results for complex object types
These issues should be addressed to ensure robust error message generation.
PR Bot Information
Version: 1.17.53 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback
- LLM:
anthropic--claude-4.5-sonnet - Correlation ID:
c1d6eff0-0746-11f1-920d-ef40eae877a1 - Event Trigger:
issue_comment.created
...src/main/java/com/sap/cds/sdm/handler/applicationservice/helper/AttachmentsHandlerUtils.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/sap/cds/sdm/handler/applicationservice/helper/AttachmentsHandlerUtils.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/sap/cds/sdm/handler/applicationservice/helper/AttachmentsHandlerUtils.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/sap/cds/sdm/handler/applicationservice/helper/AttachmentsHandlerUtils.java
Outdated
Show resolved
Hide resolved
…a/sdm into bugFixForUpIdInErrorMsgs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
This PR fixes bug where UUID of the objectPage was displayed in error messages. Now to extract the name of the entity, we follow below mechanism:
Primary: Checks UI.HeaderInfo.Title annotation first
Secondary: Falls back to Common.SemanticKey
If none of the above two exists we will display an empty String in Page:
Type of change
Please delete options that are not relevant.
Checklist before requesting a review
Upload Screenshots/lists of the scenarios tested